namespace ShareMarking.Systems.Entity {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：sys_manager_role 主键列：id
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class sys_manager_role : MySoft.Data.Entity {
    		
    		protected Int32 _id;
    		
    		protected String _role_name;
    		
    		protected Int32? _role_type;
    		
    		protected Byte? _is_sys;
    		
    		/// <summary>
    		/// 自增ID
    		/// </summary>
    		public Int32 id {
    			get {
    				return this._id;
    			}
    			set {
    				this.OnPropertyValueChange(_.id, _id, value);
    				this._id = value;
    			}
    		}
    		
    		/// <summary>
    		/// 角色名称
    		/// </summary>
    		public String role_name {
    			get {
    				return this._role_name;
    			}
    			set {
    				this.OnPropertyValueChange(_.role_name, _role_name, value);
    				this._role_name = value;
    			}
    		}
    		
    		/// <summary>
    		/// 角色类型
    		/// </summary>
    		public Int32? role_type {
    			get {
    				return this._role_type;
    			}
    			set {
    				this.OnPropertyValueChange(_.role_type, _role_type, value);
    				this._role_type = value;
    			}
    		}
    		
    		/// <summary>
    		/// 是否系统默认0否1是
    		/// </summary>
    		public Byte? is_sys {
    			get {
    				return this._is_sys;
    			}
    			set {
    				this.OnPropertyValueChange(_.is_sys, _is_sys, value);
    				this._is_sys = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
    			return new MySoft.Data.Table<sys_manager_role>("sys_manager_role");
    		}
    		
    		/// <summary>
    		/// 获取实体中的标识列
    		/// </summary>
    		protected override MySoft.Data.Field GetIdentityField() {
    			return _.id;
    		}
    		
    		/// <summary>
    		/// 获取实体中的主键列
    		/// </summary>
    		protected override MySoft.Data.Field[] GetPrimaryKeyFields() {
    			return new MySoft.Data.Field[] {
    					_.id};
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.id,
    					_.role_name,
    					_.role_type,
    					_.is_sys};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._id,
    					this._role_name,
    					this._role_type,
    					this._is_sys};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.id))) {
    				this._id = reader.GetInt32(_.id);
    			}
    			if ((false == reader.IsDBNull(_.role_name))) {
    				this._role_name = reader.GetString(_.role_name);
    			}
    			if ((false == reader.IsDBNull(_.role_type))) {
    				this._role_type = reader.GetInt32(_.role_type);
    			}
    			if ((false == reader.IsDBNull(_.is_sys))) {
    				this._is_sys = reader.GetByte(_.is_sys);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(sys_manager_role).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<sys_manager_role>();
    			
    			/// <summary>
    			/// 自增ID - 字段名：id - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field id = new MySoft.Data.Field<sys_manager_role>("id");
    			
    			/// <summary>
    			/// 角色名称 - 字段名：role_name - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field role_name = new MySoft.Data.Field<sys_manager_role>("role_name");
    			
    			/// <summary>
    			/// 角色类型 - 字段名：role_type - 数据类型：Int32(可空)
    			/// </summary>
    			public static MySoft.Data.Field role_type = new MySoft.Data.Field<sys_manager_role>("role_type");
    			
    			/// <summary>
    			/// 是否系统默认0否1是 - 字段名：is_sys - 数据类型：Byte(可空)
    			/// </summary>
    			public static MySoft.Data.Field is_sys = new MySoft.Data.Field<sys_manager_role>("is_sys");
    		}
    	}
    }
    